package org.phoenixframework.api.search.repository;

import org.phoenixframework.common.entity.pms.PmsProduct;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

/**
 * Created by IntelliJ IDEA.
 *
 * @author doublelifeke
 * Email: hautxxxyzjk@163.com
 * DateTime: 2021/7/18 22:47
 * Description: 搜索商品ES操作类
 */
public interface EsPmsProductRepository extends ElasticsearchRepository<PmsProduct, Long> {

    Page<PmsProduct> findByName(String name, Pageable pageable);

}
